import { Image, Text, View } from '@tarojs/components';
import Forbid from '@/static/images/icon/forbid.png';
import './index.less';

interface IProps {
  text: string;
}

export default function EmptyComp(props: IProps) {
  const {text} = props;
  return (
    (
      <View className='empty-container'>
        <Image src={ Forbid } className='empty-image'/>
        <Text>{ text }</Text>
      </View>
    )
  );
}